package com.vhall.component.entity.goods.goods;

import com.fasterxml.jackson.annotation.JsonProperty;
import com.vhall.component.framework.common.annotation.ParamName;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author shimingming
 * @since 2023/4/27 13:39
 */
@Data
public class GoodsLoadOrUnloadReqVO implements Serializable {

    /**
     * required 商品id
     */
    @NotNull(message = "bg_id参数不允许为空！")
    @Range(min = 1, max = Integer.MAX_VALUE, message = "bg_id参数值超范围")
    @ParamName("bg_id")
    @JsonProperty("bg_id")
    private Integer bgId;

    /**
     * 商品上下架状态;0=下架 1=上架
     */
    @NotNull(message = "load_or_unload 参数不允许为空！")
    @ParamName(value = "load_or_unload")
    @JsonProperty(value = "load_or_unload")
    private Integer loadOrUnload;
}
